//
//  PhotoFilter.h
//  XPhoto
//
//  Created by sentinel on 2020/5/20.
//  Copyright © 2020 baboy. All rights reserved.
//

#import <Foundation/Foundation.h>

#define PHOTO_FILTER_HOT        @"hot"
#define PHOTO_FILTER_VIBRANCE   @"vibrance"
#define PHOTO_FILTER_COOL       @"cool"
#define PHOTO_FILTER_GRAY       @"gray"
#define PHOTO_FILTER_VINTAGE    @"vintage"
#define PHOTO_FILTER_VIGNETTE   @"vignette"
#define PHOTO_FILTER_SKETCH     @"sketch"
#define PHOTO_FILTER_SPOT       @"spot"
#define PHOTO_FILTER_DARK       @"dark"


NS_ASSUME_NONNULL_BEGIN

@interface PhotoFilter : NSObject
+ (UIImage *)image:(UIImage *_Nullable)originImage withFilter:(NSString *)filterName;
+ (CIFilter *)filter:(NSString *)filterName forImage:(UIImage *_Nullable)originImage;
@end

NS_ASSUME_NONNULL_END
